package com.wmh.baseservice.skd.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 商家规格表
 * @TableName skd_goods_spec
 */
@TableName(value ="skd_goods_spec")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class SkdGoodsSpec implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 规格描述
     */
    @TableField("description")
    private String description;

    /**
     * 规格图片url
     */
    @TableField("img_url")
    private String imgUrl;

    /**
     * 价格
     */
    @TableField("price")
    private BigDecimal price;

    /**
     * 商品id
     */
    @TableField("goods_id")
    private Long goodsId;

    /**
     * 库存
     */
    @TableField("inventory")
    private Integer inventory;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;

    /**
     * 是否删除 0未删除 1已删除
     */
    @TableField("deleted")
    @TableLogic
    private Integer deleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}